package com.njym.java.security.app.mapper;

import com.njym.java.security.app.entity.FamilyWalletRecord;
import com.njym.java.security.app.entity.FamilyWalletRecordVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 用户钱包记录 包括爱能币与积分
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-12-18 14:30:47
 */

public interface FamilyWalletRecordMapper extends Mapper<FamilyWalletRecord> {

    List<FamilyWalletRecordVo> getHistory(Integer userId);

    Integer getHistoryPage(Integer userId);

    List<FamilyWalletRecordVo> getMyPopularHistory(Integer id);

    /**
     * 查询代理明细
     * @param id
     * @return
     */
    List<FamilyWalletRecordVo> queryDaiLiDetail(@Param("id") Integer id, @Param("startDate") String startDate, @Param("endDate") String endDate, @Param("phone") String phone);

    /**
     * 查询教育专员明细
     * @param id
     * @return
     */
    List<FamilyWalletRecordVo> queryTeacherDetail(@Param("id") Integer id);

    List<FamilyWalletRecordVo> queryTeacherDetail_2(@Param("id") Integer id, @Param("startDate") String startDate,
                                                    @Param("endDate") String endDate, @Param("phone") String phone);
}
